﻿using System;

namespace Comdiv.QWeb.Remoting {
	public class QWebResult {
		private Exception _error;
		public object ActionResult { get; set; }
		public string Content { get; set; }
		public int Status { get; set; }

		public Exception Error {
			get { return _error; }
			set {
				_error = value;
				ErrorString = "";
				if (null != value) {
					ErrorString = value.ToString();
				}
			}
		}

		public string ErrorString { get; set; }
		public DateTime LastModified { get; set; }
		public string ETag { get; set; }
	}
}